﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="loglist.aspx.cs" Inherits="EZCRS.HCMS.msgctl.log.loglist" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>消息事件日志查看</title>
    <link href="../../Style/main.css" type="text/css" rel="stylesheet" />

    <script src="../../common/jquery-1.2.6.min.js"></script>

    <script src="../../common/jquery-impromptu.1.5.js"></script>

    <script src="../../common/flexigrid/flexigrid.js"></script>

    <link rel="stylesheet" href="../../common/flexigrid/flexigrid.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="../../style/dfbDialog.css" type="text/css" media="screen" />

    <script type="text/javascript" charset="utf-8">
	
		$(document).ready(function(){
		
		    $('#grid').flexigrid({
		        width: $(document).width() - 10,
		        height: 400,
		        //striped:false,
		        
		        url:'?action=get',
		        
		        dataType: 'json',
		        
		        colModel: [
		            {display: '序号', name : 'eventid', width : 50, sortable : false, align: 'center'}, 
                    {display: '日志内容', name : 'taskstate', width : 500, sortable : false, align: 'left'}
                ],
                
                singleSelect: true,
                
                buttons : [
                    { name: '清空日志', onpress: doCommand },
                    { separator: true }
                ], 
                
                showTableToggleBtn: true,
                rp: 15,
                usepager: true,
                useRp: true
		    });
		    
		    
		});
		
		
	    function doCommand(com, grid){
	    
            if(confirm("是否确认要清空本页记录？")){
                            
                var data = { key: id };
                
                $.post("?action=del", data, 
                
                    function(data, state){
                        doRefresh();
                        
                }, "json");
            }
            
        }
        
        function doRefresh(){
            $('#grid').flexOptions().flexReload();
        }
        
        
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div class="menu_title">
        消息日志:
    </div>
    <div>
        <table id="grid">
        </table>
        <div>
    </form>
</body>
</html>
